<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue-mvvm</title>
</head>

<body>
  <div id="app">
    <p @click="add">{{count}}</p>
    <div v-text="count"></div>
    <div v-html="htmlText"></div>
    <div>{{arr}}</div>
    <input v-model="htmlText" type="text">
  </div>
</body>
<script src="./Vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      count: 10,
      htmlText:'<div style="color:red;">昨天的你的现在的未来是什么时候？</div>',
      arr:[12,2,3]
    },
    methods:{
      add(){
        this.count++
      }
    }
  })
</script>

</html>